package com.vcredit.creditcat.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.vcredit.creditcat.model.AuthAccumulation;
import com.vcredit.creditcat.persistence.AuthAccumulationExtMapper;
import com.vcredit.creditcat.persistence.base.AuthAccumulationMapper;

/**
 * 
 **/
@Service
public class AuthAccumulationService {
	@Autowired
	private AuthAccumulationMapper mapper;
	@Autowired
	private AuthAccumulationExtMapper authAccExtMapper;

	public void insert(AuthAccumulation obj) {
		mapper.insert(obj);
	}

	public void update(AuthAccumulation obj) {
		mapper.update(obj);
	}

	public List<AuthAccumulation> findAll() {
		return mapper.findAll();
	}

	public List<AuthAccumulation> find(AuthAccumulation obj) {
		return mapper.find(obj);
	}

	public AuthAccumulation findByProccessId(Long proccessId) {
		return authAccExtMapper.findByProccessId(proccessId);
	}

	public List<AuthAccumulation> findUnCrawl() {
		return authAccExtMapper.findUnCrwal();
	}
}